package com.shadt.cloud.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 分平台账户
 * @author SongR
 *
 */
@Entity
@Table(name="cms_cloud_branch")
public class CloudBranch implements Serializable{
	private static final long serialVersionUID = 3119281630949194645L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "branch_id")
	private Long id;				// 编号
	@Column(name="branch_name")
	private String name;			//分平台名称
	@Column(name="username")
	private String username;		//注册人姓名
	@Column(name="phone")
	private String userphone;		//注册人手机号
	@Column(name="branch_secret")
	private String secret;			//安全秘钥
	@Column(name="branch_create_time")
	private Date createTime;		//创建时间
	@Column(name="branch_status")
	private int status;				//状态（-1、删除  0、可用  1、禁用 2、审核中 3、审核不通过 ）
	@Column(name="password")		
	private String password;		//密码
	@Column(name="starttime")
	private Date startTime;			//获取记录的开始时间
	@Column(name="userid")			//对应的用户
	private Long userId;
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUserphone() {
		return userphone;
	}
	public void setUserphone(String userphone) {
		this.userphone = userphone;
	}
	public String getSecret() {
		return secret;
	}
	public void setSecret(String secret) {
		this.secret = secret;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
}
